﻿// Copyright (c) 2017 GlassGrass

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UniRx;

namespace GlassGrass.Unity.GuiFramework
	{
	// Implementation of container feature delegation
	internal partial class ContainerComponent
		{
		internal Subject<GuiElement> ChildAdded =>  new Subject<GuiElement>();
		
		internal Subject<GuiElement> ChildRemoved => new Subject<GuiElement>();
		
		internal GuiElementCollection Children { get; }


		internal ContainerComponent()
			{
			Children = new GuiElementCollection(this);
			}
		}
	}
